package jok.thread;

public class YieldThread extends Thread {
	public YieldThread() {
		super();
	}

	public YieldThread(String name) {
		super(name);
	}

	@Override
	public void run() {
		for (int i = 0; i < 10; i++) {
			if (i == 3) {
				Thread.yield();
			}
			System.out.println(this.getName() + "：HelloWorld " + i);
		}
	}
}
